import request from '@/utils/request'

// 查询边坡落石及碎落目标识别列表
export function listRockfallrecognition(query) {
  return request({
    url: '/ai/rockfallrecognition/list',
    method: 'get',
    params: query
  })
}

// 查询边坡落石及碎落目标识别详细
export function getRockfallrecognition(id) {
  return request({
    url: '/ai/rockfallrecognition/' + id,
    method: 'get'
  })
}

// 新增边坡落石及碎落目标识别
export function addRockfallrecognition(data) {
  return request({
    url: '/ai/rockfallrecognition',
    method: 'post',
    data: data
  })
}

// 修改边坡落石及碎落目标识别
export function updateRockfallrecognition(data) {
  return request({
    url: '/ai/rockfallrecognition',
    method: 'put',
    data: data
  })
}

// 删除边坡落石及碎落目标识别
export function delRockfallrecognition(id) {
  return request({
    url: '/ai/rockfallrecognition/' + id,
    method: 'delete'
  })
}
